# $Id: PKGBUILD 86252 2013-03-14 11:10:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=xbmc-pvr-addons
pkgver=12.0_Frodo
pkgrel=1
pkgdesc="XBMC PVR add-ons for current stable xbmc"
arch=('i686' 'x86_64')
url="https://github.com/opdenkamp/xbmc-pvr-addons"
license=('GPL3')
depends=('xbmc' 'libmysqlclient')
makedepends=('git' 'libmysqlclient' 'boost')
optdepends=('tvheadend-git: tvheadend backend' 'mythtv: mythtv backend')
conflicts=('xbmc-pvr-addons-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/opdenkamp/xbmc-pvr-addons/archive/${pkgver/_/-}.tar.gz")
md5sums=('4411848a648597037daf97562dd0fcd2')

build() {
  cd "$srcdir/$pkgname-${pkgver/_/-}"
  ./bootstrap
  ./configure --prefix=/usr --enable-addons-with-dependencies
  make
}

package() {
  cd "$srcdir/$pkgname-${pkgver/_/-}"
  make DESTDIR="$pkgdir/" install
}
